/** *******************************************************************
 * FlexDatabaseManager
 * @author  Jonnie Spratley
 * @contact jonniespratley@gmail.com
 * @internal
 ******************************************************************* */
package com.jonniespratley.flexdatabasemanager.vo
{
	import mx.collections.ArrayCollection;
		

	[Bindable]
	public class AnalyzeVO
	{
		
		/* public var aStatus:String;
		public var aInitialization:String;
		public var aChecking:String;
		public var aOpening:String;
		public var aSystemLock:String;
		public var aTableLock:String;
		public var aInit:String;
		public var aOptimizing:String;
		public var aStatistics:String;
		public var aPreparing:String;
		public var aExecuting:String;
		public var aSending:String;
		public var aEnd:String;
		public var aQueryEnd:String;
		public var aFreeing:String;
		public var aClosing:String;
		public var aLogging:String;
		public var aQueryId:String;
		public var aDuration:String;
		public var aQuery:String; */
		public var aResults:ArrayCollection;
		public var aProfile:ArrayCollection;
		public var aProfiles:ArrayCollection;
		
		public function  AnalyzeVO( obj:Object = null )
		{			
			if ( obj != null )
			{
				//set properties
				/* this.aInitialization = obj[ '(initialization)' ];
				this.aChecking = obj[ 'checking permissions' ];
				this.aOpening = obj[ 'Opening tables' ];
				this.aSystemLock = obj[ 'System lock' ];
				this.aTableLock = obj[ 'Table lock' ];
				this.aInit = obj[ 'init' ];
				this.aOptimizing = obj[ 'optimizing' ];
				this.aStatistics = obj[ 'statistics' ];
				this.aPreparing = obj[ 'preparing' ];
				this.aExecuting = obj[ 'executing' ];
				this.aSending = obj[ 'Sending data' ];
				this.aEnd = obj[ 'end' ];
				this.aQueryEnd = obj[ 'query end' ];
				this.aFreeing = obj[ 'freeing items' ];
				this.aClosing = obj[ 'closing tables' ];
				this.aLogging = obj[ 'logging slow query' ];
				this.aQueryId = obj[ 'Query_ID' ];
				this.aDuration = obj[ 'Duration' ];
				this.aQuery = obj[ 'Query' ]; */
				this.aProfile = new ArrayCollection( obj[ 'aProfile' ] );
				this.aProfiles = new ArrayCollection( obj[ 'aProfiles' ] );
				this.aResults = new ArrayCollection( obj[ 'aResults' ] );
				
			}
		}
	}
}